package com.qf.controller;

import com.qf.dto.R;
import com.qf.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 *  @author Administrator
 *  @version V1.0
 *  @Project smartdeviceplatgorm
 *  @Package com.qf.controller
 *  @Description
 *  @Date2022/3/24 0024 23:41
 */
@RestController
@RequestMapping("/menus")
public class MenuController {
    private SysMenuService sysMenuService;

    @Autowired
    public void setSysMenuService(SysMenuService sysMenuService) {
        this.sysMenuService = sysMenuService;
    }

    @GetMapping("/menus")
    public R findAllLeftMenu() {
        return R.setOk(sysMenuService.findAllLeftMenu());
    }

}
